The below code snippets reveals that this.props behavior is different only within the constructor. It would be the same outside the constructor.
- A child class constructor cannot make use of “this” reference until super() method has been called.
 - The main reason for passing the props parameter to super() call is to access this.props in your child constructors.
 - The same applies to ES6 sub-classes as well.
 - Access to this: In JavaScript, a child class constructor cannot make use of this until super() has been called. The same applies to React class components12. If you try to use this before super(), JavaScript will throw an error.
 - Inherit Parent Class Properties: The super() call is responsible for invoking the constructor of the parent class (in this case, React.Component). This allows your component to inherit methods from the parent class.